import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule,HttpClientJsonpModule} from'@angular/common/http';

//引入表单相关的模块 才可以用双向数据绑定
import { FormsModule } from '@angular/forms';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ShouyeComponent } from './components/shouye/shouye.component';
import { JuqingComponent } from './components/juqing/juqing.component';
import { XijuComponent } from './components/xiju/xiju.component';
import { DongzuoComponent } from './components/dongzuo/dongzuo.component';
import { AiqingComponent } from './components/aiqing/aiqing.component';
import { KehuanComponent } from './components/kehuan/kehuan.component';
import { DonghuaComponent } from './components/donghua/donghua.component';
import { XuanyiComponent } from './components/xuanyi/xuanyi.component';
import { DengluComponent } from './components/denglu/denglu.component';
import { RooterComponent } from './components/rooter/rooter.component';

import { JiluService } from './services/jilu.service';
import { CommonService } from './services/common.service';
import { ZhuceComponent } from './components/zhuce/zhuce.component';
@NgModule({
  declarations: [
    AppComponent,
    ShouyeComponent,
    JuqingComponent,
    XijuComponent,
    DongzuoComponent,
    AiqingComponent,
    KehuanComponent,
    DonghuaComponent,
    XuanyiComponent,
    DengluComponent,
    RooterComponent,
    ZhuceComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    HttpClientJsonpModule
  ],
  providers: [JiluService,CommonService],
  bootstrap: [AppComponent]
})
export class AppModule { }
